package com.xu.sso.web.service.convert;

import com.xu.sso.db.model.base.User;
import com.xu.sso.web.model.request.UpdateUserRequest;

public class UserConvert {

    public static User convert(UpdateUserRequest request) {
        User user = new User();
        user.setId(request.getId());
        user.setPhone(request.getPhone());
        user.setMail(request.getMail());
        user.setDepId(request.getDepId());
        user.setDepName(request.getDepName());
        user.setName(request.getName());
        user.setRemark(request.getRemark());
        return user;
    }

}
